package service.impl;

import dao.ISysLogDao;
import domain.Syslog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.ISysLogService;

import java.util.List;

/**
 * @author Freedy
 * @date 2020/12/27 12:27
 */
@Service
@Transactional
public class ISysLogServiceImpl implements ISysLogService {
    @Autowired
    private ISysLogDao sysLogDao;

    @Override
    public void save(Syslog syslog) throws Exception {
        sysLogDao.save(syslog);
    }

    @Override
    public List<Syslog> findAll() throws Exception {
        return sysLogDao.findAll();
    }
}
